package com.atguigu.spzx.model.vo.common;

import lombok.Data;
import lombok.Getter;

/**
 * @author LT
 * @create 2024-03-06-21:19
 */
@Getter
public enum ResultCodeEnum {

    LOGIN_USERNAME_ERROR(-101,"账号不存在"),
    SUCCESS(200,"操作成功"),
    LOGIN_ERROR(-201,"用户名或密码错误"),
    VALIDATE_COOE_ERROR(-202, "验证码错误"),
    PARAMS_ERROR(-203, "验证码错误"),
    LOGIN_TOKEN_ERROR(-204, "登录状态失效"),
    LOGIN_DISABLED_ERROR(-205, "账号停用"),
    LOGIN_STATUS_ERROR(-206, "登录状态失效"),
    NODATA_ERROR(-207, "未传入数据"),
    ERROR(500,"通用错误"),
    FILE_UPLOAD_ERROR(-208, "未接收到文件"),
    FILE_DELETE_ERROR(-209,"删除文件失败" ),
    MENU_DELETE_ERROR(-210, "删除菜单失败"),
    MENU_TITLE_EXIST_ERROR(-211, "菜单标题已存在"),
    FILE_EXPORT_ERROR(-212,"文件导出失败" ),
    SEND_MSG_ERROR(-213,"发送短信失败" ),
    PHONE_ERROR(-214,"手机号码格式错误" ),
    SEND_MSG_COUNT_ERROR(-215, "两分钟内不能重复获取验证码"),
    SEND_MSG_LIMIT_ERROR(-216, "24小时内获取验证码次数达上限"),
    REDISTER_PARAMS_ERROR(-217,"注册参数缺失" ),
    MOBILE_EXISTS_ERROR(-218,"手机号已注册" ),
    LOGIN_PARAMS_ERROR(-219,"登录参数缺失" ),
    LOGIN_PASSWORD_ERROR(-220, "登录密码错误"),
    ORDER_SUBITM_PRICE_ERROR(-301,"仓库价格变动。")
    , ORDER_SUBITM_STOCK_ERROR(-302,"仓库库存不足" )
    , PAY_ALIPAY_ERROR(-303,"支付失败" );

    private Integer code;
    private String message;

   private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
